package com.example.patternfactory0307.factoryPattern.abstractFactory;

/**
 * Created by huanglijun on 2019/3/7
 * 美的工厂 生产美的空调 也生产美的热水器
 */
public class MideaFactory implements Factory {
    @Override
    public AirConditioner createAirConditioner() {
        return new MideaAirConditioner();
    }

    @Override
    public WaterHeater createWaterHeater() {
        return new MideaWaterHeater();
    }
}
